package com.xiaocheng.core.visitor.impl;

import com.xiaocheng.core.visitor.BookInterface;
import com.xiaocheng.core.visitor.VisitorInterface;

public class MathBook implements BookInterface {
	
	private double price;
	private String name;
	
	public MathBook(double price,String name) {
		super();
		this.price = price;
		this.name = name;
	}
	@Override
	public void accept(VisitorInterface visitor) {
		visitor.view(this);
	}
	public double getPrice() {
		return price;
	}
	public String getName() {
		return name;
	}

}
